﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Studio77.GuessTheWordsForWP7.Views
{
    public partial class VisualKeyBoardItem : UserControl
    {
        private string key = string.Empty;

        public VisualKeyBoardItem()
        {
            InitializeComponent();
        }

        public void SetContent(String str)
        {
            key = str;
            txtContent.Text = str;
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            //按钮动作处理
            if(!string.IsNullOrEmpty(key))
            {
                //TODO 通知GamePage
                GamePage.GamePageInstance.touchKey(key);
            }
        }
    }
}
